package SnailCatMallWebAppliction.mapper;

import SnailCatMallWebAppliction.domain.Classify;import org.apache.ibatis.annotations.Param;import java.util.List;

public interface ClassifyMapper {
    int deleteByPrimaryKey(Integer classifyId);

    int insert(Classify record);

    int insertSelective(Classify record);

    Classify selectByPrimaryKey(Integer classifyId);

    int updateByPrimaryKeySelective(Classify record);

    int updateByPrimaryKey(Classify record);

    List<Classify> selectByAll(Classify classify);

    List<Classify> selectAll();

    Classify selectFirstByClassifyMd5(@Param("classifyMd5") String classifyMd5);

    String selectFirstClassifyMd5();

    int updateByClassifyMd5AndClassifyName(@Param("updated") Classify updated, @Param("classifyMd5") String classifyMd5, @Param("classifyName") String classifyName);

    int updateClassifyMd5AndClassifyName(@Param("updatedClassifyMd5") String updatedClassifyMd5, @Param("updatedClassifyName") String updatedClassifyName);

    List<Classify> selectAllByClassifyName(@Param("classifyName") String classifyName);

    List<String> selectClassifyName();

    int updateClassifyName(@Param("updatedClassifyName") String updatedClassifyName);

    int updateClassifyIdAndClassifyName(@Param("updatedClassifyId") Integer updatedClassifyId, @Param("updatedClassifyName") String updatedClassifyName);

    int updateClassifyNameAndClassifyMd5(@Param("updatedClassifyName") String updatedClassifyName, @Param("updatedClassifyMd5") String updatedClassifyMd5);
    int updateClassifyNameAndClassifyMd5classifyIcons(@Param("updatedClassifyName") String updatedClassifyName,@Param("classifyIcons") String classifyIcons, @Param("updatedClassifyMd5") String updatedClassifyMd5);
    int deleteByClassifyMd5(@Param("classifyMd5") String classifyMd5);

    List<Classify> selectpaging(@Param("offset") Integer offset, @Param("limit") Integer limit);

}